import emitter from '@/bus'

export function useAppModalListeners() {
  function clickBindAppModal() {
    emitter.emit('show:bind-app-modal', false)
  }
  function clickUnbindAppModal() {
    emitter.emit('show:bind-app-modal', true)
  }

  return {
    /** 点击绑定应用模型  */
    clickBindAppModal,

    /** 点击解绑应用模型 */
    clickUnbindAppModal,
  }
}
